#ifndef WAITTINGTHREAD_H
#define WAITTINGTHREAD_H
#include <QThread>
#include "watting.h"

class WaittingThread:public QThread
{
    Q_OBJECT
public:
    Watting* w;
protected:
    void run()
    {
        if (w==NULL)
        {
            w=new Watting();
            w->show();
        }
        else
            w->show();
    }
public slots:
    void toFinish()
    {
        w->toHide();
    }
};

#endif // WAITTINGTHREAD_H
